package com.dating.libs.web.services.datingservice;

import java.util.Hashtable;

import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;

public final class AroundUser extends SoapObject {
    private int userID;

    private double distance;
    
    private String latitude;
    private String longitude;

    public AroundUser() {
        super("", "");
    }
    public void setUserID(int userID) {
        this.userID = userID;
    }

    public int getUserID(int userID) {
        return this.userID;
    }
    public void setLatitude(String lat){
    	this.latitude=lat;
    }
    public String getLatitude(){
    	return this.latitude;
    }
    
    public void setLongitude(String lng){
    	this.longitude=lng;
    }
    public String getLongitude(){
    	return this.longitude;
    }
    
    public void setDistance(double distance) {
        this.distance = distance;
    }

    public double getDistance(double distance) {
        return this.distance;
    }

    public int getPropertyCount() {
        return 4;
    }

    public Object getProperty(int __index) {
        switch(__index)  {
        case 0: return new Integer(userID);
        case 1: return new Double(distance);
        case 2: return new String(latitude);
        case 3: return new String(longitude);
        }
        return null;
    }

    public void setProperty(int __index, Object __obj) {
        switch(__index)  {
        case 0: userID = Integer.parseInt(__obj.toString()); break;
        case 1: distance = Double.parseDouble(__obj.toString()); break;
        case 2: latitude=__obj.toString();break;
        case 3: longitude=__obj.toString();break;
        }
    }

    public void getPropertyInfo(int __index, Hashtable __table, PropertyInfo __info) {
        switch(__index)  {
        case 0:
            __info.name = "userID";
            __info.type = Integer.class; break;
        case 1:
            __info.name = "distance";
            __info.type = Double.class; break;
        case 2:
        	__info.name="latitude";
        	__info.type=String.class;break;
        case 3:
        	__info.name="longtitude";
        	__info.type=String.class;break;
        }
    }

}
